package com.example.deepschool.Model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
public class CourseResource {
	
	@Schema(description = "课程资源ID")
    private Long id;
	
	@Schema(description = "关联的课程ID")
    private Long courseId;
	
	@Schema(description = "资源名称")
    private String resourceName;
	
	@Schema(description = "资源类型（例如：文档、视频、音频等）")
	private String type;
	
	@Schema(description = "资源地址或下载链接")
    private String address;
	
	@Schema(description = "上传时间")
    private java.sql.Timestamp uploadTime;
	
	// 构造方法保持不变
	public CourseResource (Long courseId, String resourceName, String address, String type) {
		this.courseId = courseId;
		this.resourceName = resourceName;
		this.address = address;
		this.type = type;
	}
	
	// 默认构造方法保持不变
	public CourseResource () {
	}
}
